/*    */ package server.maps;
/*    */ 
/*    */ import server.movement.StaticLifeMovement;
import client.MapleCharacter;
/*    */ import client.MapleClient;
/*    */ import java.awt.Point;
/*    */ import java.util.List;
/*    */ import server.movement.LifeMovement;
/*    */ import server.movement.LifeMovementFragment;
/*    */ import tools.packet.SummonPacket;
/*    */ 
/*    */ 
/*    */ 
/*    */ public class MapleLittleWhite
/*    */   extends AnimatedMapleMapObject
/*    */ {
/*    */   private final int owner;
/*    */   private final int jobid;
/*    */   private final int skillid;
/*    */   private final int fh;
/*    */   private boolean stats;
/*    */   private boolean show;
/* 22 */   private Point pos = new Point(0, 0);
/*    */   
/*    */   public MapleLittleWhite(MapleCharacter owner) {
/* 25 */     this.owner = owner.getId();
/* 26 */     this.jobid = owner.getJob();
/* 27 */     this.skillid = 40020109;
/* 28 */     this.show = true;
/* 29 */     this.fh = owner.getFH();
/* 30 */     this.stats = false;
/* 31 */     setPosition(owner.getTruePosition());
/* 32 */     setStance(this.fh);
/*    */   }
/*    */   
/*    */   public int getOwner() {
/* 36 */     return this.owner;
/*    */   }
/*    */   
/*    */   public int getJobId() {
/* 40 */     return this.jobid;
/*    */   }
/*    */   
/*    */   public int getSkillId() {
/* 44 */     return this.skillid;
/*    */   }
/*    */   
/*    */   public void sendStats() {
/* 48 */     this.stats = !this.stats;
/*    */   }
/*    */   
/*    */   public boolean getStats() {
/* 52 */     return this.stats;
/*    */   }
/*    */   
/*    */   public boolean isShow() {
/* 56 */     return this.show;
/*    */   }
/*    */   
/*    */   public void setShow(boolean show) {
/* 60 */     this.show = show;
/*    */   }
/*    */ 
/*    */   
/*    */   public MapleMapObjectType getType() {
/* 65 */     return MapleMapObjectType.SUMMON;
/*    */   }
/*    */   
/*    */   public final Point getPos() {
/* 69 */     return this.pos;
/*    */   }
/*    */   
/*    */   public final void setPos(Point pos) {
/* 73 */     this.pos = pos;
/*    */   }
/*    */ 
/*    */   
/*    */   public void sendSpawnData(MapleClient client) {
/* 78 */     client.announce(SummonPacket.spawnLittleWhite(this));
/*    */   }
/*    */ 
/*    */   
/*    */   public void sendDestroyData(MapleClient client) {
/* 83 */     client.announce(SummonPacket.showLittleWhite(this));
/*    */   }
/*    */   
/*    */   public final void updatePosition(List<LifeMovementFragment> movement) {
/* 87 */     for (LifeMovementFragment move : movement) {
/* 88 */       if (move instanceof LifeMovement) {
/* 89 */         if (move instanceof StaticLifeMovement) {
/* 90 */           setPos(move.getPosition());
/*    */         }
/* 92 */         setStance(((LifeMovement)move).getNewstate());
/*    */       } 
/*    */     } 
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\maps\MapleLittleWhite.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */